import lyRequest from '../index.js'

// 登录接口
export const reqLogin = (code) => {
	return lyRequest.post({
		url: '/personal/login',
		data: {
			code
		},
		isShowMessage: true
	})
}

// 获取用户信息
export const getUserInfo = () => {
	return lyRequest.get({
		url: '/personal/getBasePersonalInfo',
	})
}

// 获取加密公钥
export const getPublicKey = () => {
	return lyRequest.get({
		url: '/getPublicKey'
	})
}